import request from '@/utils/request'

export function listmaintainType(query) {
  return request({
    url: '/maintain/maintainType/list',
    method: 'get',
    params: query
  })
}

export function createmaintainType(data) {
  return request({
    url: '/maintain/maintainType/create',
    method: 'post',
    data
  })
}

export function readmaintainType(data) {
  return request({
    url: '/maintain/maintainType/get/' + data.id,
    method: 'get'
  })
}

export function updatemaintainType(data) {
  return request({
    url: '/maintain/maintainType/update',
    method: 'post',
    data
  })
}

export function deletemaintainType(data) {
  return request({
    url: '/maintain/maintainType/delete/' + data.fmmtypeno,
    method: 'delete'
  })
}
